function mlh = mlhandle(hFigure)
% BVQXfigure::mlhandle  - return the Matlab handle of an object

% Version:      v0.7g
% Build:        9032717
% Date:         Mar-27 2009, 5:20 PM CET
% Author:       Jochen Weber, SCAN Unit, Columbia University, NYC, NY, USA
% URL / Info:   http://wiki.brainvoyager.com/BVQXtools

% create output
hfs = struct(hFigure);
mlh = zeros(size(hfs));

% iterate over objects and put into mlh
for oc = 1:numel(hfs)
    mlh(oc) = hfs(oc).mhnd;
end
